<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="../common/init_context.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>国付宝收银台 - 订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/reset.css" media="all" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/style.css" media="all" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/ui-lightness/jquery-ui-1.9.2.custom.css" media="all" />
<script type="text/javascript" src="${ROOT}/static/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ROOT}/static/js/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="${ROOT}/static/js/jquery.gopay.ext.js"></script>

<!--[if IE 6]> 
<script src="../javascripts/png_ie6fix.js" type="text/javascript"></script> 
<script type="text/javascript">
EvPNG.fix("div, span,a");
</script>

<![endif]-->

<script type="text/javascript">
	var ctx='${ctx}';
</script>
</head>
<body>
<%@include file="../common/header.jsp"%>
<div class="container1024">
	<div class="container960">
		<jsp:include page="payInfoHead.jsp" flush="true"></jsp:include>
		<div class="borderBox-3">
			<div style="height: 120px; padding-left: 25px">
				<p>
					尊敬的客户：
					<br />　　为保障您的资金安全，请仔细核对订单信息，并选择是否支付。切勿轻信陌生短信、登录非法网站、透露银行卡等信息，不要轻易点击卖家发送的不明链接进行购买和支付。提高警惕，谨防钓鱼网站，防止欺诈受骗。
					<br />　　交易信息核实无误后，请点击“确定支付”继续完成本次交易，或者点击“取消”终止本次交易。
				</p>
			</div>
		<form action="${ROOT}${returnUrl}" method="post" id="illegalRequestForm">
					<div style="height: 255px; padding-left: 25px">
						<table>
							<tr>
								<td width="50%">
									<img id="checkCodeImg" src="${ROOT}/antiphish/verifycode.jpeg?orderId=${orderId}" alt="" />
								</td>
								<td align="center" vAlign="middle">
									<c:choose>
										<c:when test="${logo == null}">
											<img src="${ROOT}/static/img/logo.png" />
										</c:when>
										<c:otherwise>
											<img src="${logo}" />
										</c:otherwise>
									</c:choose>
								</td>
							</tr>
						</table>
					</div>
					<br>
					<hr style="border-style: dashed;" />
					<div style="color:red;" align="center">${err_msg}</div>
					<div style="padding-left: 25px; height: 80px;">
						<table>
							<tr>
								<td height="30px">请输入浮动的四位字母验证码：</td>
								<td><input type="text" id="verifyCode" name="verifyCode" /></td>
								<td><a href="#" onclick="changeImg();">换一张</a></td>
							</tr>
						</table>
						<div align="right">
							<button type="button" class="btn-1" onclick="doSubmit();">确定支付</button>
							<button type="button" class="btn-1" onclick="doCancel();" style="margin-left: 100px;">取消</button>
						</div>
					</div>
					<input type="hidden" name="orderId" value="${orderId}">
					<input type="hidden" name="payWay" value="${payWay}">
					<input type="hidden" name="formhash" value="${formhash}">
					<input type="hidden" name="gopayAcctId" value="${gopayAcctId}">
					<input type="hidden" name="payChannel" value="${payChannel}">
					<input type="hidden" name="corpPayBankCode" value="${corpPayBankCode}">
					<input type="hidden" name="personalPayBankCode" value="${personalPayBankCode}">

					<input type="hidden" name="payBankCode" value="${payBankCode}">
			</form>
		</div>
	</div>
	<br>
</div>

<script type="text/javascript">
	$(document).ready(function() {
	});
	function doSubmit() {
		if($('#verifyCode').val() == ''){
			alert('请输入验证码');
			return false;
		}
		$('#illegalRequestForm').submit();
	}
	function doCancel(){
		window.open('','_parent','');
		window.close();
		location.href='about:blank';
	}
	function changeImg() {
		var url = $("#checkCodeImg").attr("src") + "&time="+ (new Date()).valueOf();
		$("#checkCodeImg").attr("src", url);
	};
</script>
<%@include file="../common/footer.jsp"%>
</body>
</html>
